package com.lc.rabbit.config;

/**
 * @description: some desc
 * @author: LChuang
 * @date: 2023/10/23 17:54
 */
public class RabbitMqConstant {

    // 工作队列
    public static final String WORK_TOPIC = "workTopic";
    // RabbitMq的DIRECT交换机名称
    public static final String WORK_DIRECT_EXCHANGE = "workDirectExchange";
    // RabbitMq的DIRECT交换机和队列的绑定键 DirectRouting
    public static final String WORK_DIRECT_ROUTING = "workDirectRouting";


    // 订阅模式
    public static final String PUBLISH_01_TOPIC = "publish01Topic";
    public static final String PUBLISH_02_TOPIC = "publish02Topic";
    // 广播交换机
    public static final String FANOUT_EXCHANGE = "fanoutExchange";
    // 广播路由键
    public static final String FANOUT_DIRECT_ROUTING = "";


    // 延时消息队列
    public static final String DELAYED01_TOPIC = "delayed01Topic";
    public static final String DELAYED02_TOPIC = "delayed02Topic";
    public static final String DELAYED03_TOPIC = "delayed03Topic";
    // 延时消息交换机
    public static final String DELAYED_EXCHANGE = "delayedDirectExchange";
    // 延时-路由键
    public static final String DELAYED01_ROUTING = "delayed01DirectRouting";
    public static final String DELAYED02_ROUTING = "delayed02DirectRouting";
    public static final String DELAYED03_ROUTING = "delayed03DirectRouting";
    // 死信队列
    public static final String DEAD_TOPIC = "deadTopic";
    // 死信队列交换机
    public static final String DEAD_EXCHANGE = "deadDirectExchange";
    // 死信-路由键
    public static final String DEAD_ROUTING = "deadDirectRouting";


    // Topics 统配符模式
    public static final String WILDCARD01_TOPIC = "wildcard01Topic";
    public static final String WILDCARD02_TOPIC = "wildcard02Topic";
    public static final String WILDCARD03_TOPIC = "wildcard03Topic";

    public static final String WILDCARD_EXCHANGE = "wildcardExchange";

    //* 代表一个词
    //# 代表零个或者多个词
    public static final String WILDCARD01_ROUTING = "exec.one.two";
    public static final String WILDCARD02_ROUTING = "exec.*";
    public static final String WILDCARD03_ROUTING = "exec.#";

}
